package com.ocl.www.service;

import com.ocl.www.domain.BgPic;
import com.ocl.www.mapper.BgPicMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/12/9.
 */
@Service
public class BgPicService {

    @Autowired
    private BgPicMapper bgPicMapper;


    public BgPic queryBgUrlWithIsUse() throws  Exception {
        return bgPicMapper.queryBgUrlWithIsUse();
    }

    public BgPic queryPicForAdver() throws Exception {
        return bgPicMapper.queryPicForAdver();
    }

    public int deleteTopPic(BgPic bgPic)  throws Exception {
        return bgPicMapper.deleteTopPic(bgPic);
    }
}
